/**
 * Copyright(c) by JNet Smartware Group.
 * All rights reserved. Not distribution or redistribution without
 * any permission of JNet Smartware Group.
 * 
 * @author thuc
 * 2010/04/12
 */
package vn.smartware.co.framework.logging;

/**
 * @author Thuc
 * TimePeriod
 */
public class TimePeriod {

	public static final TimePeriod UNDEFINED = new TimePeriod(-1);
	public static final TimePeriod MINUTE = new TimePeriod(1);
	public static final TimePeriod HOUR = new TimePeriod(60);
	public static final TimePeriod HALF_DAY = new TimePeriod(12 * 60);
	public static final TimePeriod DAY = new TimePeriod(24 * 60);
	public static final TimePeriod WEEK = new TimePeriod(7 * 24 * 60);
	public static final TimePeriod MONTH = new TimePeriod(30 * 24 * 60);
	
	public TimePeriod(int mm) {
		duration = 1000L * 60 * mm;
	}

	private long duration;

	long getDuration() {
		return duration;
	}
}
